package cn.wen233.core.service;

import cn.wen233.basic.model.Namespace;
import cn.wen233.basic.model.Service;
import cn.wen233.core.filter.ServiceFilter;
import cn.wen233.core.page.PageOut;

import java.util.List;

/**
 * Service 服务接口
 *
 * @author wenei
 * @date 2021-10-23 16:55
 */
public interface ServiceService {

    Service findById(String id);

    List<Service> findAll(String namespaceId);

    PageOut<Service> findPage(ServiceFilter filter);

    Service findBy(String namespaceId, String group, String serviceName);

    void create(Service service);

    void update(String id, Service service);

    void delete(String id);
}
